Skip to main content

All Questions

2votes
1answer
235views

How does a new process executed in Bash always has the same environment variables?

A while ago I was exploring a simple C program's ELF binary using GDB. I saw that the environment variables that are printed when I run printenv in the terminal are also present at the top of the ...
sweetpoision's user avatar
3votes
1answer
4kviews

Processes PPID changed to 1 after closing parent shell

Opening a new terminal and typing the command firefox& inside, ps -l gives : 4 R 1000 23132 23104 99 80 0 - 2177945 - pts/27 00:00:07 firefox If the shell is closed with the command exit,...
bob dylan's user avatar
2votes
1answer
382views

What process state(s) is counted into cpu time?

Two observations of mine (correct me if wrong): In the output of time for timing a process, 'User' and 'Sys' come from wait (2) or times (2), depending on the particular system. In Linux kernel, ...
Tim's user avatar
  • 106k

close